package com.bosssoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bosssoft.entity.po.FibIncomeBudgetDetailPO;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author Li kexi
 * Created on 2021/8/19.15:46
 */
@Mapper
public interface FibIncomeBudgetDetailMapper extends BaseMapper<FibIncomeBudgetDetailPO> {
    int updateBatch(List<FibIncomeBudgetDetailPO> list);

    int updateBatchSelective(List<FibIncomeBudgetDetailPO> list);

    int batchInsert(@Param("list") List<FibIncomeBudgetDetailPO> list);

    int insertOrUpdate(FibIncomeBudgetDetailPO record);

    int insertOrUpdateSelective(FibIncomeBudgetDetailPO record);

    @Update("update fib_income_budget_detail \n"+
            "set ib_id=#{foreign} ")
    int updateForeign(Long foreign);
}